#!/usr/bin/python3
#filename: list.py
# This is my shopping list

shoplist = ['apple', 'mango', 'carrot', 'banana']
print('I have', len(shoplist), 'items to purchase.')
print('These items are', end=' ')
for item in shoplist:
    print(item, end=' ')

shoplist.append('rice')
print('\nMy shopping list is now',shoplist)

shoplist.sort()
print('My shopping list is now',shoplist)


del shoplist[1]
shoplist.sort()
print('My shopping list is now',shoplist)
